package carRental;

public class Limousine extends Car {
private String type;

public Limousine(String brand, String id, double rent,String type) {
	super(brand,id,rent);
	this.type = type;
}
public Limousine() {
	super();
}
public String getType() {
	return type;
}
public void setType(String type) {
	this.type = type;
}
@Override
public double calcRent(int days) {
	double total = 0.0;
	if(days >  7 && days <= 30) {
		total = days * this.getRent() * 0.9;
	}
	else if(days > 30 && days <= 150) {
		total = days * this.getRent() * 0.8;
	}
	else if(days > 150) {
		total = days * this.getRent() * 0.7;
	}
	else {
		total = days * this.getRent();
	}
	return total;
}
}
